package com.tjbklx1.rabbitmq.demo11.event;

import org.junit.Assert;

import com.tjbklx1.rabbitmq.demo11.People;

public class ApiProcessEventProcessor implements EventProcesser {
	public void process(Object e) {// 消费程序这里只是打印信息
		Assert.assertNotNull(e);
		System.out.println(e);
		if (e instanceof People) {
			People people = (People) e;
			System.out.println(people.getSpouse());
			System.out.println(people.getFriends());
		}
	}
}